import moment from 'moment';

export const formatDate = (date, format = 'YYYY-MM-DD HH:mm:ss') => {
    date = moment(date);
    return date.format(format);
};